#include <stdio.h>
#define gallon_to_liters 3.785
#define mile_to_kms 1.609
int main(void)
{
    double mileage, gas;

    printf("输入里程（英里）和消耗的汽油量（加仑）：");
    scanf("%lf %lf", &mileage, &gas);
    printf("%.1f(英里/加仑)\n", mileage / gas);
    printf("%.1f(升/100公里)\n", gas * gallon_to_liters / mileage * mile_to_kms);

    return 0;
}